package com.example.zrq1010110087.graceplayer.main;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * Created by zrq1010110087 on 2017/10/19.
 */

public class MusicBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
           Intent i=new Intent("android.intent.action.MusicService");
            i.putExtra("status",intent.getIntExtra("status",0));
            i.putExtra("number",intent.getIntExtra("number",0));
            i.putExtra("currentTime",intent.getIntExtra("currentTime",0));
        i.putExtra("currentTime",intent.getIntExtra("currentTime",0));
        i.putExtra("playModel",intent.getIntExtra("playModel",0));
           context.startService(i);

    }
}
